﻿using Autofac;
using DBContext;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLine.Common;
using ZoneLine.Views;
using ZoneLine.Views.HStationViews;

namespace ZoneLine.ViewModels
{
    public class ViewModelLocator
    {
        public MainViewModel MainView
        {
            get
            {
                return ContainerServer.Container.Resolve<MainViewModel>();
            }
        }

        public HOpMainViewModel HOpMainView
        {
            get
            {
                return ContainerServer.Container.Resolve<HOpMainViewModel>();
            }
        }

        public XWOpMainViewModel XWOpMainView
        {
            get
            {
                return ContainerServer.Container.Resolve<XWOpMainViewModel>();
            }
        }

        public HistoryViewModel HistoryView
        {
            get
            {
                return ContainerServer.Container.Resolve<HistoryViewModel>();
            }
        }

        public StationResultInfoViewModel StationResultInfoView
        {
            get
            {
                return null;
            }
        }

        public StationConfigViewModel StationConfigView
        {
            get
            {
                return ContainerServer.Container.Resolve<StationConfigViewModel>();
            }
        }

        public HStationConfigViewModel HStationConfigView
        {
            get
            {
                return ContainerServer.Container.Resolve<HStationConfigViewModel>();
            }
        }

        public PrintConfigTotal PrintConfigTotalModel
        {
            get
            {
                return ContainerServer.Container.Resolve<PrintConfigTotal>();
            }
        }

        public PackageBoxViewModel PackageBoxView
        {
            get
            {
                return ContainerServer.Container.Resolve<PackageBoxViewModel>();
            }
        }

        public LableCompenstateViewModel LableCompenstateView
        {
            get
            {
                return ContainerServer.Container.Resolve<LableCompenstateViewModel>();
            }
        }

        public StationResultViewModel StationResultView
        {
            get
            {
                return ContainerServer.Container.Resolve<StationResultViewModel>();
            }
        }

        public XWStationConfigViewModel XWStationConfigView
        {
            get
            {
                return ContainerServer.Container.Resolve<XWStationConfigViewModel>();
            }
        }

        public PackageReplaceViewModel PackageReplaceView
        {
            get
            {
                return ContainerServer.Container.Resolve<PackageReplaceViewModel>();
            }
        }

        public PieceIndexViewModel PieceIndexView
        {
            get
            {
                return ContainerServer.Container.Resolve<PieceIndexViewModel>();
            }
        }

        public PackageUpdateViewModel PackageUpdateView
        {
            get
            {
                return ContainerServer.Container.Resolve<PackageUpdateViewModel>();
            }
        }

        public FormulaConfigViewModel FormulaConfigView
        {
            get
            {
                return ContainerServer.Container.Resolve<FormulaConfigViewModel>();
            }
        }

        public FormulaSelectViewModel FormulaSelectView
        {
            get
            {
                return ContainerServer.Container.Resolve<FormulaSelectViewModel>();
            }
        }

        public WorkSituationViewModel WorkSituationView
        {
            get
            {
                return ContainerServer.Container.Resolve<WorkSituationViewModel>();
            }
        }

        public PackingMainViewModel PackingMainView
        {
            get
            {
                return ContainerServer.Container.Resolve<PackingMainViewModel>();
            }
        }

        
        public HPackingMainViewModel HPackingMainView
        {
            get
            {
                return ContainerServer.Container.Resolve<HPackingMainViewModel>();
            }
        }


    }
}